//
// Primitive.hh for  in /home/gomes_m//svn/google/ticket-pour-gdl/menu_V1
// 
// Made by mickael gomes
// Login   <gomes_m@epitech.net>
// 
// Started on  Fri May 17 16:09:58 2013 mickael gomes
// Last update Thu May 30 11:25:33 2013 mickael gomes
//

#ifndef		RECTANGLE_HH_
# define	RECTANGLE_HH_

# include	<SFML/Audio.hpp>
# include	<iostream>
# include	<GameClock.hpp>
# include	<Input.hpp>
# include	<Model.hpp>
# include	<Image.hpp>
# include	"Vector3f.hh"

class Rectangle
{
public:
  void		initialize(std::string  const &, float, float, float, float, float);
  void		initVertex();
  void		update(Vector3f const &);
  void		draw(Vector3f const &);
  void		draw(void);
  float		vertexX1_;
  float		vertexY1_;
  float		vertexX2_;
  float		vertexY2_;

private:
  float		z_;
  float		pos_x1_;
  float		pos_y1_;
  float		pos_x2_;
  float		pos_y2_;
  float		vertexMove_;
  unsigned int	move_x_;
  unsigned int	move_y_;
  gdl::Image    texture_;
  sf::SoundBuffer buffer;
  sf::Sound	sound;
};

#endif		// !RECTANGLE_HH_
